package services

import (
	"WORKSPACE/dao"
	"WORKSPACE/models"
)

func GetAllbill() (error, []models.Bill, int64) {
	err, billdata, total := dao.GetAllbill()
	return err, billdata, total
}


func Delbill(billId int) error {
	err := dao.Delbill(billId)
	return err
}

func Updatebill(bill models.Bill) error{
	err:= dao.UpdateBill(bill)
	return err
}

func Addbill(bill models.Bill) (error) {
	err := dao.AddBill(bill)
	return err
}
